import request from '@/utils/request'

// 查询预约设计方案列表
export function listStarDesignCase(query) {
  return request({
    url: '/StarDesignCase/StarDesignCase/list',
    method: 'get',
    params: query
  })
}

// 查询预约设计方案详细
export function getStarDesignCase(id) {
  return request({
    url: '/StarDesignCase/StarDesignCase/' + id,
    method: 'get'
  })
}

// 新增预约设计方案
export function addStarDesignCase(data) {
  return request({
    url: '/StarDesignCase/StarDesignCase',
    method: 'post',
    data: data
  })
}

// 修改预约设计方案
export function updateStarDesignCase(data) {
  return request({
    url: '/StarDesignCase/StarDesignCase',
    method: 'put',
    data: data
  })
}

// 删除预约设计方案
export function delStarDesignCase(id) {
  return request({
    url: '/StarDesignCase/StarDesignCase/' + id,
    method: 'delete'
  })
}

// 导出预约设计方案
export function exportStarDesignCase(query) {
  return request({
    url: '/StarDesignCase/StarDesignCase/export',
    method: 'get',
    params: query
  })
}